package com.example.service;

import com.example.dao.UserDao;
import com.example.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

/***
 * @ClassName: UserService
 * @Description: 1
 * @Auther: ywang
 * @Date: 14:31 2019/10/16 0016
 * @version : V1.0
 */
@Service
public class UserService implements UserDao {

    @Autowired
    MongoTemplate mongoTemplate;

    @Override
    public void saveUser(User user) {
        mongoTemplate.save(user);
    }

    @Override
    public void removeUser(Long id) {

    }

    @Override
    public void updateUser(User user) {

    }

    @Override
    public User findUserById(Long id) {
        return null;
    }
}